body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.groesser {
  transform: scale(1.5); /* Skaliert die Seite auf 150% */
  transform-origin: top left; /* Stelle sicher, dass der Ursprung der Skalierung oben links ist */
}

.kleiner {
  transform: scale(0.75); /* Skaliert die Seite auf 150% */
  transform-origin: top left; /* Stelle sicher, dass der Ursprung der Skalierung oben links ist */
}

h1 {
  font-size: 5vh;
}

h2 {
  font-size: 4vh;
}

h3 {
  font-size: 3vh;
}

h4 {
  font-size: 2vh;
  border-radius: 8px;
  border-width: 1px;
  border-style: solid;
}

p {
  font-size: 2vh;
}

.abteilungstext {
  font-size: 1vh;
  /*height: fit-content !important;*/
}

.corporateDesign.lightMode {
  background-image: url('../images/Hintergrund_2103x1030_bright.jpg');
  background-size: cover;
  background-position: center; 
}

.corporateDesign.darkMode {
  background-image: url('../images/Hintergrund_2103x1030_dark.jpg');
  background-size: cover;
  background-position: center; 
}

.headerLeiste {
    display: flex;
    height: 12vh;
    justify-content: space-between;
    overflow-y: hidden;
    margin-bottom: 0;
}

.footerLeiste {
    width: 102vw;
    height: 7vh;
    display: flex;
    justify-content: space-evenly;
    margin-top: 0;
}

.firstContainer {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: none;
    padding-top: 1vw;
}

.drehen {
    overflow-y: scroll;
    overflow-x: hidden;
    box-sizing:border-box;
}

.hauptteil {
    margin-bottom: 0;
    height: 75vh;
    overflow-x: none;
    margin-left: 4vh;
}

.flexContainer {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 0;
    margin: 0;
}

.kasten {
    height: 57.2vh;
}

a {
  cursor:pointer;
}

a:link, a:visited {
    text-decoration: none;
}

.reihe {
    width: 100vw;
    display: flex;
    margin: 0;
    padding: 0;
}

.platzhalter{
  height: 4vh;
  width: 8vw;
}

.nameContainer {
    width: 10vw;
    margin: 0;
    padding: 0;
}

.dezNameContainer {
    display: flex;
    align-items: center;
    height: 4vh;
    width: 11vw;
    margin: 0.5vh;
    padding: 2vh;
    margin-top: 2.6vh;
}

.tageContainer {
    width: 85vw;
    margin: 0;
    padding: 0;
    display: block;
}

.monatsContainer {
  width: 85vw;
  margin: 0;
  padding: 0;
  gap: 0;
  height: max-content;
}

.dezTageContainer {
  height: max-content;
  width: 85vw; /*Woche = 1.5vw | 20px --> Tag = 0.3vw | 4px*/
  margin: 0.5vh;
  padding: 0.5vh;
  margin-top: 2vh;
  display: flex;
  box-sizing: border-box;
  gap: 0;
  line-height: 1;
  font-size: 2vh;
  align-items: center;
  clear: both;
}

.freierTag {
    height: 4vh;
    width: 3vw;
    margin: 0;
    margin-top: 0.2vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor:default;
}

.klickbar {
    cursor:pointer;
}

.wochenendeTag.freierTag:not(.gebuchterTag) {
  width: 0.5vw !important;
}

.wochenendeTag.gebuchterTag {
  height: 4vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wochenendeTag.zwischenraum.wochenendeBeginn {
  height: 4vh !important;
  border-top-right-radius: 1vw;
  border-bottom-right-radius: 1vw;
}

.wochenendeTag.zwischenraum.wochenendeEnde {
  height: 4vh !important;
  border-top-left-radius: 1vw;
  border-bottom-left-radius: 1vw;
}

.noborder {
  border-style: hidden !important;
}

.freierTag:not(.gebuchterTag) {
    border-radius: 0.5vw;
}

.gebuchterTag.vergangen {
  opacity: 0.5;
  cursor:default;
}

.versteckt {
  opacity: 0.3;
}

.vergangen {
  opacity: 0.5 !important;
}

.heutigerTag {
  outline-width: 0.4vh !important;
  outline-style: solid !important;
  position: relative;
  /*z-index: 1;*/
}

.zwischenraum {
    padding: 0;
    margin: 0;
    margin-top: 0.2vh;
    height: 4vh;
    width: 0.25vw;
}

.zwischenraum.gebuchterTag.davor {
    border-top-left-radius: 0.25vw;
    border-bottom-left-radius: 0.25vw;
}

.zwischenraum.gebuchterTag.danach {
    border-top-right-radius: 0.25vw;
    border-bottom-right-radius: 0.25vw;
}

.monatsAnzeige {
    margin: 0;
    padding: 0;
    margin-right: 2vh;
    margin-left: 2vh;
    width: 12vw;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6vh;
}

.dent-corner{
  width: 1.05vw !important;
  height: 4vh;
  margin-left: 0;
  margin-right: 0;
  border: none;
  box-sizing: border-box;
  outline: none !important;
}

.dent-corner.wochenendeEnde {
  margin-right: -0.025vw;
  margin-left: -0.025vw;
  clip-path: polygon(
    0 0,
    0 25%, 
    15% 25%, 
    27% 22%, 
    40% 17%, 
    50% 9%, 
    56% 5%, 
    71% 2.5%, 
    84% 0, 
    100% 0,
    100% 50%,
    100% 100%,
    84% 100%,
    71% 97.5%, 
    56% 95%, 
    50% 91%, 
    40% 83%, 
    15% 75%,  
    27% 78%,
    0 75%,
    0 100%,
    0 50%
  );
}

.dent-corner.wochenendeBeginn {
  margin-right: -0.025vw;
  margin-left: -0.025vw;
  clip-path: polygon(
    100% 0,
    100% 25%, 
    85% 25%, 
    73% 22%, 
    60% 17%, 
    50% 9%, 
    44% 5%, 
    29% 2.5%, 
    16% 0, 
    0 0,
    0 50%,
    0 100%,
    16% 100%,
    29% 97.5%, 
    44% 95%, 
    50% 91%, 
    60% 83%, 
    73% 78%, 
    85% 75%, 
    100% 75%,
    100% 100%,
    100% 50%
  );
}

.knopf {
    font-size: 2vh;
    background-repeat:no-repeat;
    cursor:pointer;
    overflow: hidden;   
    border-radius: 0.4vmin;
}

.rechnenknopf {
  height: 3vh; 
  width: 3vw;  
  border-radius: 0.4vmin;
}

.bewerbungsknopf {
  width:15vw;
  height:2vw;
  border-radius: 0.4vmin;
  cursor: pointer;
}

.bewerbungsknopf:hover {
  background-color: lightgray;
}

.textknopf {
  height: 3vh; 
  width: 6vw;
  border-radius: 0.4vmin;
}

.anordnung {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

input {
  width: 1vw;
  height: 1vw;
}

label {
  font-size: 2vh;
  padding-right: 2vh;
}

.dropdown {
  /*position: relative;*/
  display: inline-block;
  width: 15vw;
}

.dropdown-button {
    width: 15vw;
    height: 3vh;
    padding: 1vh;
    font-size: 2vh;
    border: none;
    cursor: pointer;
    border-radius: 0.4vmin;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-button::after {
    content: "▼";
    font-size: 1vmin;
}

.dropdown-content {
    display: none;
    position: absolute;
    width: 15vw;
    z-index: 1;
    border-radius: 0.4vmin;
    margin-top: 0.4vh;
    overflow: hidden;
}

.dropdown-item {
    padding: 1.2vh 3vh;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: background-color 0.2s;
}

.show {
    display: block;
}

/* Beschreibung der Card */
.custom-card {
  border-radius: 0.25rem;
  margin: 4vh 0;
  overflow-y: auto !important;
}

.custom-card-header {
  padding: 3.4vh;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.custom-card-body {
  padding: 4vh;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
}

.custom-table th,
.custom-table td {
  padding: 3vh;
  text-align: left;
}

.erklaerungskarte {
  overflow: auto !important;
}

.kleineSchrift {
  height: 1.5vh;
  font-size: 1.2vh !important;
  margin: 0 !important;
  padding: 0.1vh !important;
}

.schriftklein {
  font-size: 1.4vh !important;
}

#Abt1.schriftklein {
  font-size: 2vh !important;
}
#Abt2.schriftklein {
  font-size: 1.1vh !important;
}
#Abt3.schriftklein {
  font-size: 1.2vh !important;
}
#Abt4.schriftklein {
  font-size: 1.6vh !important;
}
#Abt5.schriftklein {
  font-size: 1.6vh !important;
}

/* Farben */

.ampelFarbe.lightMode {
  background-color: rgb(49, 159, 72) !important;
}

.ampelFarbe.darkMode {
  background-color: rgb(1, 115, 1) !important;
}

.gebuchterTag.vergeben.ampelFarbe.darkMode:not(.vergangen) {
  opacity: 1 !important;
  background-color: rgb(133, 92, 0) !important;
  cursor:default;
}

.gebuchterTag.vergeben.ampelFarbe.lightMode:not(.vergangen) {
  opacity: 1 !important;
  background-color: rgb(255, 188, 34) !important;
  cursor:default;
}

.gebuchterTag.vergangen.ampelFarbe.darkMode {
  opacity: 1 !important;
  background-color: rgb(120, 0, 0) !important;
  cursor:default;
}

.gebuchterTag.vergangen.ampelFarbe.lightMode {
  opacity: 1 !important;
  background-color: rgb(255, 101, 101) !important;
  cursor:default;
}

h4.lightMode {
  border-color: black;
}

h4.darkMode {
  border-color: white;
}

a:link.lightMode, a:visited.lightMode {
  color: rgb(212, 208, 208);
}

a:link.darkMode, a:visited.darkMode {
  color: rgb(75, 74, 74);
}

.firstContainer.lightMode {
  /*background-color: #496342;*/
  color: rgb(52, 52, 52);
}

.firstContainer.darkMode {
  /*background-color: #2d2d2d;*/
  color: rgb(212, 208, 208);
}

.freierTag.lightMode {
  background-color: #bcbcbc;
  color: black;
}

.freierTag.darkMode {
  background-color: #4d4d4d;
  color: white;
}

.wochenendeTag.lightMode {
  background-color: #717070;
}

.wochenendeTag.darkMode {
  background-color: #a3a3a3;
}

.heutigerTag.lightMode {
  outline-color: black !important;
}

.heutigerTag.darkMode {
  outline-color: white !important;
}

.dezNameContainer.lightMode {
  background-color: rgb(212, 208, 208);
  color: black;
}

.dezNameContainer.darkMode {
  background-color: rgb(75, 74, 74);
  color: white;
}

#homeButtonFeld {
  background-color: transparent;
}

.headerLeiste.lightMode {
  color: rgb(49, 159, 72);
}

.headerLeiste.darkMode {
  color: rgb(49, 159, 72);
}

.footerLeiste.lightMode {
  background-color: rgb(75, 74, 74);
  color: rgb(212, 208, 208);
}

.footerLeiste.darkMode {
  background-color: rgb(75, 74, 74);
  color: rgb(212, 208, 208);
  /*
  background-color: rgb(212, 208, 208);
  color: rgb(75, 74, 74);
  */
}

.abdunkeln.lightMode {
  background-color: rgba(255, 255, 255, 0.7);
}

.abdunkeln.darkMode {
  background-color: rgba(50, 50, 50, 0);
}

.knopf.lightMode {
  background-color: lightgray;
  color: black;
}

.knopf.darkMode {
  background-color: gray;
  color: white;
}

.dropdown-primary.lightMode {
  background-color: lightgray;
  color: black;
  border: 0.1vh solid black;
}

.dropdown-primary.darkMode {
  background-color: gray;
  color: white;
}

.dropdown-content.lightMode {
  box-shadow: 0 0.8vh 1.6vw 0 rgba(0,0,0,0.2);
}

.dropdown-content.darkMode {
  box-shadow: 0 0.8vh 1.6vw 0 rgba(255,255,255,0.2);
}

.dropdown-item.lightMode {
  background-color: white;
  color: black;
}

.dropdown-item.darkMode {
  background-color: black;
  color: white;
}

.dropdown-item:hover.lightMode {
  background-color: #f1f1f1;
}

.dropdown-item:hover.darkMode {
  background-color: #484747;
}

.custom-card.lightMode {
  background-color: white;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.custom-card-header.lightMode {
  background-color: #007bff;
  color: white;
}

.custom-table th .lightMode,
.custom-table td .lightMode{
  border: 1px solid #dee2e6;
}

.custom-table th .lightMode{
  background-color: #007bff;
  color: white;
}

.custom-table tbody tr:nth-child(odd) .lightMode {
  background-color: #dedede;
}

.custom-table tbody tr:hover .lightMode {
  background-color: #e9ecef;
}

.custom-card.darkMode {
  background-color: white;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.custom-card-header.darkMode {
  background-color: #007bff;
  color: white;
}

.custom-table th .darkMode,
.custom-table td .darkMode{
  border: 1px solid #dee2e6;
}

.custom-table th .darkMode{
  background-color: #007bff;
  color: white;
}

.custom-table tbody tr:nth-child(odd) .darkMode {
  background-color: #f2f2f2;
}

.custom-table tbody tr:hover .darkMode {
  background-color: #e9ecef;
}

.abteilungEinsFarbe {
  background-color: #e2001a !important;
}

.abteilungZweiFarbe {
background-color: #f29400 !important;
}

.abteilungDreiFarbe {
background-color: #003064 !important;
}

.abteilungVierFarbe {
background-color: #9c0a7d !important;
}

.abteilungFuenfFarbe {
background-color: #009036 !important;
}

/* Modal und der fliegende Knopf */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    display: flex;
    /*pointer-events: none;*/
  }
  
  .modal-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    width: 60%;
  }
  
  .close {
    color: #aaa;
    font-size: 10vh;
    font-weight: bold;
    position: relative;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: rgb(87, 87, 87);
    text-decoration: none;
    cursor: pointer;
  }

  .bewerben {
    margin-left: 40vh;
    width: max-content;
    font-size: 2vh;
    background-color: Transparent;
    background-repeat:no-repeat;
    cursor:pointer;
    overflow: hidden;
    border: none;
    color: blue;
  }

.closed {
    display:none !important;
}

#confirmButtonContainer {
    display: flex;
    justify-content: center; /* Zentriert die Buttons horizontal */
    gap: 20px; /* Abstand zwischen den Buttons */
    margin-top: 20px;
}

    #confirmButtonContainer button {
        padding: 12px 30px; /* Größe der Buttons vergrößern */
        font-size: 18px; /* Schriftgröße erhöhen */
        cursor: pointer;
        border-radius: 6px;
        border: none;
        background-color: #007BFF; /* Beispiel-Farbe für "Bestätigen" */
        color: white;
        transition: background-color 0.3s ease;
    }

        #confirmButtonContainer button#cancelBtn {
            background-color: #6c757d; /* grauer Button für "Abbrechen" */
        }

        #confirmButtonContainer button:hover {
            background-color: #0056b3; /* dunklere Farbe beim Hover */
        }

        #confirmButtonContainer button#cancelBtn:hover {
            background-color: #5a6268;
        }

.buttonContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2vh;
    width: 100%;
}

.button {
    --primary: #275EFE;
    --primary-dark: #2055EE;
    --primary-darkest: #133FC0;
    --text: #FFFFFF;
    --text-opacity: 1;
    --success: #2B3044;
    --success-scale: .2;
    --success-opacity: 0;
    --border-radius: 7;
    --overflow: hidden;
    --rotate: 0;
    --plane-x: 0;
    --plane-y: 0;
    --plane-opacity: 1;
    --left-wing-background: var(--primary);
    --left-wing-first-x: 0;
    --left-wing-first-y: 0;
    --left-wing-second-x: 50;
    --left-wing-second-y: 0;
    --left-wing-third-x: 0;
    --left-wing-third-y: 100;
    --left-body-background: var(--primary);
    --left-body-first-x: 50;
    --left-body-first-y: 0;
    --left-body-second-x: 50;
    --left-body-second-y: 100;
    --left-body-third-x: 0;
    --left-body-third-y: 100;
    --right-wing-background: var(--primary);
    --right-wing-first-x: 50;
    --right-wing-first-y: 0;
    --right-wing-second-x: 100;
    --right-wing-second-y: 0;
    --right-wing-third-x: 100;
    --right-wing-third-y: 100;
    --right-body-background: var(--primary);
    --right-body-first-x: 50;
    --right-body-first-y: 0;
    --right-body-second-x: 50;
    --right-body-second-y: 100;
    --right-body-third-x: 100;
    --right-body-third-y: 100;
    display: block;
    cursor: pointer;
    position: relative;
    border: 0;
    padding: 8px 0;
    min-width: 100px;
    text-align: center;
    margin: 0;
    line-height: 24px;
    font-family: inherit;
    font-weight: 500;
    font-size: 14px;
    background: none;
    outline: none;
    color: var(--text);
    -webkit-transform: rotate(calc(var(--rotate) * 1deg)) translateZ(0);
            transform: rotate(calc(var(--rotate) * 1deg)) translateZ(0);
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
  }
  .button .left,
  .button .right {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    opacity: var(--plane-opacity);
    -webkit-transform: translate(calc(var(--plane-x) * 1px), calc(var(--plane-y) * 1px)) translateZ(0);
            transform: translate(calc(var(--plane-x) * 1px), calc(var(--plane-y) * 1px)) translateZ(0);
  }
  .button .left:before, .button .left:after,
  .button .right:before,
  .button .right:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border-radius: calc(var(--border-radius) * 1px);
    -webkit-transform: translate(var(--x, 0.4%), var(--y, 0)) translateZ(0);
            transform: translate(var(--x, 0.4%), var(--y, 0)) translateZ(0);
    z-index: var(--z-index, 2);
    background: var(--background, var(--left-wing-background));
    -webkit-clip-path: polygon(calc(var(--first-x, var(--left-wing-first-x)) * 1%) calc(var(--first-y, var(--left-wing-first-y)) * 1%), calc(var(--second-x, var(--left-wing-second-x)) * 1%) calc(var(--second-y, var(--left-wing-second-y)) * 1%), calc(var(--third-x, var(--left-wing-third-x)) * 1%) calc(var(--third-y, var(--left-wing-third-y)) * 1%));
            clip-path: polygon(calc(var(--first-x, var(--left-wing-first-x)) * 1%) calc(var(--first-y, var(--left-wing-first-y)) * 1%), calc(var(--second-x, var(--left-wing-second-x)) * 1%) calc(var(--second-y, var(--left-wing-second-y)) * 1%), calc(var(--third-x, var(--left-wing-third-x)) * 1%) calc(var(--third-y, var(--left-wing-third-y)) * 1%));
  }
  .button .left:after {
    --x: 0;
    --z-index: 1;
    --background: var(--left-body-background);
    --first-x: var(--left-body-first-x);
    --first-y: var(--left-body-first-y);
    --second-x: var(--left-body-second-x);
    --second-y: var(--left-body-second-y);
    --third-x: var(--left-body-third-x);
    --third-y: var(--left-body-third-y);
  }
  .button .right:before {
    --x: -.4%;
    --z-index: 2;
    --background: var(--right-wing-background);
    --first-x: var(--right-wing-first-x);
    --first-y: var(--right-wing-first-y);
    --second-x: var(--right-wing-second-x);
    --second-y: var(--right-wing-second-y);
    --third-x: var(--right-wing-third-x);
    --third-y: var(--right-wing-third-y);
  }
  .button .right:after {
    --x: 0;
    --z-index: 1;
    --background: var(--right-body-background);
    --first-x: var(--right-body-first-x);
    --first-y: var(--right-body-first-y);
    --second-x: var(--right-body-second-x);
    --second-y: var(--right-body-second-y);
    --third-x: var(--right-body-third-x);
    --third-y: var(--right-body-third-y);
  }
  .button span {
    display: block;
    position: relative;
    z-index: 4;
    opacity: var(--text-opacity);
  }
  .button span.success {
    z-index: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    -webkit-transform: rotate(calc(var(--rotate) * -1deg)) scale(var(--success-scale)) translateZ(0);
            transform: rotate(calc(var(--rotate) * -1deg)) scale(var(--success-scale)) translateZ(0);
    opacity: var(--success-opacity);
    color: var(--success);
  }
  
  html {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
  }
  
  * {
    box-sizing: inherit;
  }
  *:before, *:after {
    box-sizing: inherit;
  }
  
  body {
    min-height: 100vh;
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: center;
            justify-content: center;
    -webkit-box-align: center;
            align-items: center;
    font-family: 'Inter', Arial;
    background: #E1E6F9;
  }
  body .dribbble {
    position: fixed;
    display: block;
    right: 20px;
    bottom: 20px;
  }
  body .dribbble img {
    display: block;
    height: 28px;
  }
  body .twitter {
    position: fixed;
    display: block;
    right: 64px;
    bottom: 14px;
  }
  body .twitter svg {
    width: 32px;
    height: 32px;
    fill: #1da1f2;
  }

 /* Landscape/Querformat - Basis-Einstellungen 
@media (orientation: landscape) {
  h1 {
    font-size: 4vh;
  }

  h2 {
    font-size: 3.2vh;
  }

  h3 {
    font-size: 2.5vh;
  }

  h4 {
    font-size: 2vh;
    border-radius: 6px;
    border-width: 1px;
  }

  p {
    font-size: 1.8vh;
  }

  .abteilungstext {
    font-size: 1.2vh;
  }

  .knopf {
    font-size: 1.8vh;
    border-radius: 0.3vh;
  }

  .rechnenknopf {
    height: 2.5vh;
    width: 2.8vw;
  }

  .textknopf {
    height: 2.5vh;
    width: 5.5vw;
  }

  label {
    font-size: 1.8vh;
    padding-right: 1.5vh;
  }

  .dropdown-button {
    height: 2.5vh;
    padding: 0.8vh;
    font-size: 1.8vh;
  }

  .dropdown-item {
    padding: 1vh 2.5vh;
  }

  .headerLeiste {
    height: 10vh;
  }

  .footerLeiste {
    height: 6vh;
  }

  .hauptteil {
    height: 78vh;
    margin-left: 3vh;
  }

  .freierTag {
    height: 3.5vh;
    width: 2.8vw;
    margin-top: 0.15vh;
  }

  .zwischenraum {
    height: 3.5vh;
    width: 0.2vw;
    margin-top: 0.15vh;
  }

  .dezTageContainer {
    height: auto;
    margin: 0.4vh;
    padding: 0.4vh;
    margin-top: 1.8vh;
    font-size: 1.8vh;
  }

  .dezNameContainer {
    height: 3.5vh;
    margin: 0.4vh;
    padding: 1.5vh;
    margin-top: 2.2vh;
  }

  .heutigerTag {
    outline-width: 0.3vh !important;
  }

  .modal-content {
    width: 70vw;
    padding: 2vh;
  }

  .close {
    font-size: 6vh;
    top: 1vh;
    right: 3vw;
  }

  .bewerben {
    margin-left: 20vh;
    font-size: 1.8vh;
  }
}
*/

@media (orientation: portrait) {
  /* Basis-Einstellungen für Portrait-Modus */
  body {
    overflow-x: auto !important;
    overflow-y: auto !important;
  }

  /* Schriftgrößen - verwende vw für Portrait da Breite kleiner ist */
  h1 {
    font-size: 3vw;
  }

  h2 {
    font-size: 2.5vw !important; 
  }

  h3 {
    font-size: 2vw !important; 
  }

  h4 {
    font-size: 1.5vw;
    border-radius: 1vw;
    border-width: 0.2vw;
  }

  p {
    font-size: 3vw;
  }

  .abteilungstext {
    font-size: 1.8vw;
  }

  /* Layout-Container - Höhe in vh, Breite in vw */
  .headerLeiste {
    height: 12vh;
  }

  .footerLeiste {
    width: 104vw;
    height: 8vh;
  }

  .firstContainer {
    height: 110vh;
    padding-top: 2vw;
  }

  .hauptteil {
    height: 72vh;
    margin-left: 4vw;
  }

  .flexContainer {
    height: 100vh;
  }

  .kasten {
    height: 58vh;
  }

  .bildgroesse {
    height: 50% !important;
  }

  /* Kalender-Layout angepasst für Portrait */
  .reihe {
    width: 100vw;
  }

  .platzhalter {
    height: 6vw;
    width: 12vw;
  }

  .nameContainer {
    width: 15vw;
  }

  .dezNameContainer {
    height: 6vw;
    width: 16vw;
    margin: 0.8vw;
    padding: 2vw;
    margin-top: 3vw;
  }

  .tageContainer {
    width: 80vw;
  }

  .monatsContainer {
    width: 80vw;
    height: auto;
  }

  .dezTageContainer {
    width: 80vw;
    height: auto;
    margin: 0.8vw;
    padding: 0.8vw;
    margin-top: 2.5vw;
    font-size: 3vw;
  }

  /* Tage-Elemente */
  .freierTag {
    height: 6vw;
    width: 4vw;
    margin-top: 0.3vw;
    font-size: 2.5vw;
  }

  .wochenendeTag.freierTag:not(.gebuchterTag) {
    width: 0.8vw !important;
  }

  .wochenendeTag.gebuchterTag {
    height: 6vw;
  }

  .wochenendeTag.zwischenraum.wochenendeBeginn {
    height: 6vw !important;
    border-top-right-radius: 1.5vw;
    border-bottom-right-radius: 1.5vw;
  }

  .wochenendeTag.zwischenraum.wochenendeEnde {
    height: 6vw !important;
    border-top-left-radius: 1.5vw;
    border-bottom-left-radius: 1.5vw;
  }

  .freierTag:not(.gebuchterTag) {
    border-radius: 0.8vw;
  }

  .heutigerTag {
    outline-width: 0.5vw !important;
  }

  .zwischenraum {
    margin-top: 0.3vw;
    height: 6vw;
    width: 0.4vw;
  }

  .zwischenraum.gebuchterTag.davor {
    border-top-left-radius: 0.4vw;
    border-bottom-left-radius: 0.4vw;
  }

  .zwischenraum.gebuchterTag.danach {
    border-top-right-radius: 0.4vw;
    border-bottom-right-radius: 0.4vw;
  }

  .monatsAnzeige {
    margin-right: 2vw;
    margin-left: 2vw;
    width: 15vw;
    font-size: 3.5vw;
  }

  .dent-corner {
    width: 1.4vw !important;
    height: 6vw;
  }

  .dent-corner.wochenendeEnde {
    margin-right: -0.05vw;
    margin-left: -0.05vw;
  }

  .dent-corner.wochenendeBeginn {
    margin-right: -0.05vw;
    margin-left: -0.05vw;
  }

  /* Buttons und Controls */
  .knopf {
    font-size: 3vw;
    border-radius: 1vw;
  }

  .rechnenknopf {
    height: 5vw;
    width: 8vw;
  }

  .bewerbungsknopf {
    width:20vh;
    height:2vh;
    border-radius: 0.4vmin;
    cursor: pointer;
  }
  

  .textknopf {
    height: 5vw;
    width: 12vw;
  }

  /* Form-Elemente */
  input {
    width: 2vw;
    height: 2vw;
  }

  label {
    font-size: 3vw;
    padding-right: 3vw;
  }

  .dropdown {
    width: 25vw;
  }

  .dropdown-button {
    width: 25vw;
    height: 5vw;
    padding: 1.5vw;
    font-size: 3vw;
    border-radius: 1vw;
  }

  .dropdown-content {
    width: 25vw;
    margin-top: 0.6vw;
    border-radius: 1vw;
  }

  .dropdown-item {
    padding: 2vw 4vw;
  }

  /* Cards */
  .custom-card {
    margin: 5vw 0;
    border-radius: 1vw;
  }

  .custom-card-header {
    padding: 4vw;
    border-top-left-radius: 1vw;
    border-top-right-radius: 1vw;
    font-size: 4vw;
  }

  .custom-card-body {
    padding: 5vw;
  }

  .custom-table th,
  .custom-table td {
    padding: 4vw;
    font-size: 2.8vw;
  }

  /* Spezielle Schriftgrößen */
  .kleineSchrift {
    height: 2.5vw;
    font-size: 2vw !important;
    padding: 0.2vw !important;
  }

  .schriftklein {
    font-size: 2.2vw !important;
  }

  #Abt1.schriftklein {
    font-size: 3vw !important;
  }

  #Abt2.schriftklein {
    font-size: 1.8vw !important;
  }

  #Abt3.schriftklein {
    font-size: 2vw !important;
  }

  #Abt4.schriftklein {
    font-size: 2.5vw !important;
  }

  #Abt5.schriftklein {
    font-size: 2.5vw !important;
  }

  /* Modal für Portrait-Modus anpassen */
  .modal-content {
    width: 90vw;
    padding: 4vw;
    border-radius: 2vw;
  }

  .close {
    font-size: 8vw;
    top: 2vw;
    right: 5vw;
  }

  .bewerben {
    margin-left: 10vw;
    font-size: 3vw;
  }

  /* Button-Container */
  .buttonContainer {
    margin-top: 4vw;
  }

  .button {
    min-width: 25vw;
    padding: 3vw 0;
    font-size: 3vw;
    line-height: 4vw;
  }
}